/*
 * @Author: lihui 545647016@qq.com
 * @Date: 2023-06-15 11:41:59
 * @LastEditors: lihui 545647016@qq.com
 * @LastEditTime: 2024-07-19 14:46:57
 * @FilePath: \hello-rust\src\main.rs
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
use ferris_says::say;
use std::io::{stdout, BufWriter, WriterPanicked};

fn main() {
    let stdout = stdout();
    let message = String::from("Hello fellow Rustaceans!");
    let width = message.chars().count();

    let mut writer = BufWriter::new(stdout.lock());
    say(message.as_bytes(), width, &mut writer).unwrap();


    println!("Hello, world!");
}